package com.ewanghuiju.app.base.contract.my;

import com.ewanghuiju.app.base.BasePresenter;
import com.ewanghuiju.app.base.BaseView;
import com.ewanghuiju.app.model.bean.request.PhoneRegistbindRequestBean;

/**
 * @author sj  qq:751943509
 * @class 手机号注册和绑定
 * @time 2020/2/14
 */
public interface ChangeBodyWithCodeContract {

    interface View extends BaseView {
        void showPayPassword();

        void showPayPasswordError(int code, String message);

        void showCodeText(String text);

        void showCodeComplete();

        void showCodeOn();

        void bindAlipaySuccess();

        void mobileEditSuccess();

        void editpwdSuccess();
    }

    interface Presenter extends BasePresenter<View> {
        //修改密码
        void editpwd(PhoneRegistbindRequestBean phoneRegistbindRequestBean);

        //修改手机号
        void mobileEdit(String old_mobile, String pwd, String mobile, String code);

        //修改支付密码
        void setPayPassword(String password);

        //绑定支付宝
        void bindAlipay(String uname, String alipay, String mobile, String code);

        void getCode(String mobile); //获取验证码

        void startInterval();

        void stopInterval();
    }

}
